#pragma once
class TddClient
{
public:
	TddClient();
	virtual ~TddClient();

	int init(std::string ip, int port, int timeout);

	int login(std::string username, std::string pwd);

	std::string genReq(int a);

	std::string transmit(const std::string &reqStr);

	int handleRsp(const std::string &rsp);

	void deinit();
private:
	bool _isInited;
	bool _isLogined;
	void *_svrHandle;
};

